package ai.astar;

import java.util.Comparator;

public class NodeDistanceComparator implements Comparator<Node>{

	@Override
	public int compare(Node node1, Node node2) {
		if(node1.getRankingDistance() > node2.getRankingDistance()){
			return 1;
		}else if(node1.getRankingDistance() < node2.getRankingDistance()){
			return -1;
		}
		return 0;
	}

}
